﻿using MODEL;

namespace IBLL
{
    /// <summary>
    /// 机构接口
    /// </summary>
    public interface IOrganizationBLL
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="organization"></param>
        /// <returns></returns>
        Task<int> AddOrgan(Organization organization);
        /// <summary>
        /// 批量删除（逻辑）
        /// </summary>
        /// <param name="idstring"></param>
        /// <returns></returns>
        Task<int> RangeDelete(string idstring);
        /// <summary>
        /// 批量修改状态
        /// </summary>
        /// <param name="idstring"></param>
        /// <returns></returns>
        Task<int> UpdateStutus(string idstring);
        /// <summary>
        /// 数据绑定服务
        /// </summary>
        /// <returns></returns>
        List<Service> GetServices();
        /// <summary>
        /// 查询+分页
        /// </summary>
        /// <param name="name"></param>
        /// <param name="sid"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        dynamic GetList(string? name, int sid, int pageindex, int pagesize);
        /// <summary>
        /// 获取导出的机构信息集合
        /// </summary>
        /// <returns></returns>
        List<Organization> GetOrga();
    }
}
